package org.swidgets.sinputdata;

import java.util.Date;

import org.swidgets.base.slabel.SLabel;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class SCalendar extends Composite{
	private VerticalPanel container=new VerticalPanel();
	private HorizontalPanel navBar=new HorizontalPanel();
	private Grid calendar =new Grid(7,5);
	private Button prevYear =new Button("<<");
	private Button prevMonth =new Button("<-");
	private Button nextMonth =new Button("->");
	private Button nextYear =new Button(">>");
	private SLabel lblDate =new SLabel();
	private Date date =new Date();
	
	public SCalendar(){
		initWidget(container);
		container.add(navBar);
		container.add(calendar);
		navBar.add(prevYear);
		navBar.add(prevMonth);
		navBar.add(lblDate);
		navBar.add(nextMonth);
		navBar.add(nextYear);
		prevYear.setWidth("20px");
		prevMonth.setWidth("20px");
		nextMonth.setWidth("20px");
		nextYear.setWidth("20px");
		navBar.setStyleName("CalendarHeader");
		
		
		lblDate.setText("04/01/2008");
		lblDate.setStyle(lblDate.SMALL_TITLE_LABEL_STYLE);
	}
	
	
	
}
